package com.ljx.threadTest.module;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 李加喜
 * @Package com.ljx.threadTest.module
 * @date 2024-05-28 21:19
 */
/**
    * 分类信息表
    */
@ApiModel(value="com-ljx-threadTest-module-CfCategory")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "custom_form.cf_category")
public class CfCategory {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键id")
    private Long id;

    /**
     * 机构id
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(value="机构id")
    private Long tenantId;

    /**
     * 部门id
     */
    @TableField(value = "org_id")
    @ApiModelProperty(value="部门id")
    private Long orgId;

    /**
     * 分类名称
     */
    @TableField(value = "category_name")
    @ApiModelProperty(value="分类名称")
    private String categoryName;

    /**
     * 分类编码
     */
    @TableField(value = "category_code")
    @ApiModelProperty(value="分类编码")
    private String categoryCode;

    /**
     * 分类类型 0-系统分类 1-租户分类
     */
    @TableField(value = "category_type")
    @ApiModelProperty(value="分类类型 0-系统分类 1-租户分类")
    private Byte categoryType;

    /**
     * 父分类
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="父分类")
    private Long parentId;

    /**
     * 分类排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="分类排序")
    private Integer sort;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value="备注")
    private String remark;

    /**
     * 创建者
     */
    @TableField(value = "created_by")
    @ApiModelProperty(value="创建者")
    private Long createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_on")
    @ApiModelProperty(value="创建时间")
    private Date createdOn;

    /**
     * 修改者
     */
    @TableField(value = "modified_by")
    @ApiModelProperty(value="修改者")
    private Long modifiedBy;

    /**
     * 修改时间
     */
    @TableField(value = "modified_on")
    @ApiModelProperty(value="修改时间")
    private Date modifiedOn;

    /**
     * 逻辑删除标识：0-未删除，1-已删除
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="逻辑删除标识：0-未删除，1-已删除")
    private Boolean isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_TENANT_ID = "tenant_id";

    public static final String COL_ORG_ID = "org_id";

    public static final String COL_CATEGORY_NAME = "category_name";

    public static final String COL_CATEGORY_CODE = "category_code";

    public static final String COL_CATEGORY_TYPE = "category_type";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_SORT = "sort";

    public static final String COL_REMARK = "remark";

    public static final String COL_CREATED_BY = "created_by";

    public static final String COL_CREATED_ON = "created_on";

    public static final String COL_MODIFIED_BY = "modified_by";

    public static final String COL_MODIFIED_ON = "modified_on";

    public static final String COL_IS_DELETED = "is_deleted";
}